﻿using System;

namespace MessagePack.Formatters
{
	// Token: 0x02000043 RID: 67
	public class DoubleFormatter : IMessagePackFormatter<double>
	{
		// Token: 0x060000FB RID: 251 RVA: 0x000047DB File Offset: 0x00002BDB
		private DoubleFormatter()
		{
		}

		// Token: 0x060000FC RID: 252 RVA: 0x000047E3 File Offset: 0x00002BE3
		public int Serialize(ref byte[] bytes, int offset, double value, IFormatterResolver formatterResolver)
		{
			return MessagePackBinary.WriteDouble(ref bytes, offset, value);
		}

		// Token: 0x060000FD RID: 253 RVA: 0x000047ED File Offset: 0x00002BED
		public double Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize)
		{
			return MessagePackBinary.ReadDouble(bytes, offset, out readSize);
		}

		// Token: 0x04000037 RID: 55
		public static readonly DoubleFormatter Instance = new DoubleFormatter();
	}
}
